﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using HCFramework.API.LINQ;

namespace HCFramework.Product.Confirmation.Control
{
    public partial class OrderContactInfo : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        public void BindData(Order order)
        {
            OrderContact oc = C.OrderContactController.GetOrInsert(order.OrderID);
            litAddress.Text = oc.Address;
            litEmail.Text = oc.Email;
            litName.Text = oc.Name;
            litPhone.Text = oc.PhoneNumber;
        }
    }
}